package com.ttn.common.core.entity.studentrecord;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 词汇学习记录
 */
@Data
@TableName(value = "test_study_record")
public class TestStudyRecord implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 课程id
     */
    @TableField(value = "course_unit_id")
    private Integer courseUnitId;

    /**
     * 学员id
     */
    @TableField(value = "student_id")
    private Integer studentId;

    /**
     * 得分
     */
    @TableField(value = "score")
    private Integer score;

    /**
     * 单元任务(1词汇2听力3语法4口语跟读 5 口语会话)
     */
    @TableField(value = "unit_task_type")
    private String unitTaskType;

    /**
     * 是否完成(0否 1是)
     */
    @TableField(value = "finish_flag")
    private Integer finishFlag;
    /**
     * 学习数量
     */
    @TableField(value = "study_num")
    private Integer studyNum;
    /**
     * 超越比例
     */
    @TableField(value = "beyond_proportion")
    private BigDecimal beyondProportion;


    @TableField(value = "grade")
    private Integer grade;
    @TableField(value = "course_unit_num")
    private Integer courseUnitNum;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
    private Date createTime;
    @TableField(value = "correct_amount")
    private Integer correctAmount;


}